﻿using System;

namespace Inovout
{
    /// <summary>
    /// 用于类属性和枚举描述的特性
    /// </summary>
    [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = true)]
    public class AliasAttribute : Attribute
    {
        #region Private Field
        private string name;
        #endregion

        #region Property

        public string Name
        {
            get { return name; }
        }

        #endregion

        #region Constructor

        public AliasAttribute()
        {
        }

        public AliasAttribute(string name)
        {
            ArgumentAssert.IsNotDefault(name,"name");
            this.name = name;
        }
        #endregion

    }
}
